<?php
/**
 *
 * User: zhaomeng1
 * Date: 2019/5/14
 * Time: 11:32 AM
 *
 */
$serv = new swoole_http_server("0.0.0.0",9503);

$serv->on("request",function ($request,$response){
    var_dump ($request);
    $response->header("Content-type","text/html; charset=utf-8");
    $response->end("hello world".rand (100, 9999));

});

$serv->start();
